package com.leyou.user;

import com.leyou.auth.annotation.EnableJwtVerification;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author YYP
 * @date 2021/1/9
 */
@SpringBootApplication(scanBasePackages = {"com.leyou.user","com.leyou.common.advice"})
@MapperScan("com.leyou.user.mapper")
@EnableFeignClients("com.leyou.auth.client")
//用户拦截器开关
@EnableJwtVerification
public class LyUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyUserApplication.class);
    }
}
